import request from '@/utils/request'

// 查询vipPackage列表
export function listVipPackage(query) {
  return request({
    url: '/vipPackage/list',
    method: 'get',
    params: query
  })
}

// 分页查询vipPackage列表
export function listVipPackageByPage(query) {
  return request({
    url: '/vipPackage/page',
    method: 'get',
    params: query
  })
}

// 查询vipPackage
export function getVipPackage(id) {
  return request({
    url: '/vipPackage/' + id,
    method: 'get'
  })
}

// 新增vipPackage
export function addVipPackage(data) {
  return request({
    url: '/vipPackage',
    method: 'post',
    data: data
  })
}

// 修改vipPackage
export function updateVipPackage(data) {
  return request({
    url: '/vipPackage',
    method: 'put',
    data: data
  })
}

// 删除vipPackage
export function deleteVipPackage(id) {
  return request({
    url: '/vipPackage/' + id,
    method: 'delete'
  })
}
